Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

fix clock drift for assignments issued before the block #3851

Merged
merged 17 commits into from
Oct 3, 2021

Conversation

rphmeier
Copy link
Contributor

In our tests, we typically import a block with tick 10 and then import assignments recorded at tick 0 (as the test clock is at tick 0). This often leads to the nonsensical tranche-0 no-show wakeups at tick 20, when they should be at 30 (block-tick + no-show-delay = 10 + 20 = 30).

This breaks a bunch of tests, so those need to be fixed first.

@rphmeier rphmeier added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Sep 15, 2021
next_no_show: None,
maximum_broadcast: 3,
clock_drift: block_tick,
RequiredTranches::Exact {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the name of the test I suspect that this test is wrong if the result is not Pending

@rphmeier rphmeier merged commit 7beea9f into master Oct 3, 2021
@rphmeier rphmeier deleted the rh-fix-clock-drift branch October 3, 2021 19:41
ordian added a commit that referenced this pull request Oct 3, 2021
* master:
  Bump jsonrpsee-ws-client from 0.3.0 to 0.3.1 (#3931)
  fix clock drift for assignments issued before the block (#3851)
ordian added a commit that referenced this pull request Oct 5, 2021
* master: (138 commits)
  Allow an Offset to Lease Periods (#3980)
  Bump quote from 1.0.9 to 1.0.10 (#4013)
  Companion for #9834 (Transaction Priority) (#3901)
  chore: update `builder` image (#3884)
  Free disputed cores before processing bitfields (#4008)
  Make candidate validation timeouts configurable (#4001)
  Add extrinsic ordering filtering (#3631)
  chore: ci list files that spellcheck finds (#3992)
  Use background tasks properly in candidate-validation (#4002)
  Fix unoccupied bitfields (#4004)
  Bump syn from 1.0.77 to 1.0.78 (#4006)
  Bump jsonrpsee-ws-client from 0.3.0 to 0.3.1 (#3931)
  fix clock drift for assignments issued before the block (#3851)
  Remove unoccupied bit check (#3999)
  bump substrate (#4000)
  change genesis authority set for wococo-local, revert rococo-local (#3998)
  ignore irrelevant approvals in logs (#3859)
  avoid expect, on free availability core (#3994)
  preserve finalized block in active leaves (#3997)
  some tweaks to rococo-local (#3996)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants